package com.baizhi.controller;

import com.baizhi.entity.Book;
import com.baizhi.service.BookService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@RequestMapping("book")
public class BookController {
    private BookService bs;
    @RequestMapping("selectAll")
    @ResponseBody
    public List<Book> selectAll(){
        return bs.selectAll();
    }
    public BookService getBs() {
        return bs;
    }

    public void setBs(BookService bs) {
        this.bs = bs;
    }
}
